﻿@model DJH.School.Core.Models.Student

@{
    ViewData["Title"] = "Det详细ails";
}

<h2>详细</h2>

<div>
    <h4>学生信息</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.RealName)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.RealName)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.EnrollmentDate)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.EnrollmentDate)
        </dd>
    </dl>
    @Html.DisplayNameFor(model => model.Enrollments)
    <table class="table">
        <tr>
            <th>课程</th>
            <th>成绩</th>
        </tr>
        @foreach (var item in Model.Enrollments)
        {
            <tr>
                <td>@Html.DisplayFor(d => item.Course.Title)</td>
                <td>@Html.DisplayFor(d => item.Grade)</td>
            </tr>
        }

    </table>
</div>
<div>
    <a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
    <a asp-action="Index">返回列表</a>
</div>
